package com.cs.bd.ad;

import com.cs.bd.ad.bean.AdModuleInfoBean;
import com.cs.bd.ad.http.bean.BaseModuleDataItemBean;
import com.cs.bd.ad.sdk.bean.SdkAdSourceAdInfoBean;

import java.util.ArrayList;
import java.util.List;

public class AdSdkResultHelper {

    public static AdModuleInfoBean createNativeAds(String key, Object object) {
        AdModuleInfoBean adModuleInfoBean = new AdModuleInfoBean();
        adModuleInfoBean.setSdkAdControlInfo(new BaseModuleDataItemBean());

        SdkAdSourceAdInfoBean sdkAdSourceAdInfoBean = new SdkAdSourceAdInfoBean();
        List<Object> adWrappers = new ArrayList<>();
        adWrappers.add(object);
        sdkAdSourceAdInfoBean.addAdViewList(key, adWrappers);
        adModuleInfoBean.setSdkAdSourceAdInfoBean(sdkAdSourceAdInfoBean);
        return adModuleInfoBean;
    }


}
